-- GENERATED SPELL FOR [Bloodspore Harvester] --


function spell0_25467(pUnit, Event) --@Bloodspore Haze,n/a--
pUnit:FullCastSpellOnTarget(50380,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25467', 655, 1)
end

function spell1_25467(pUnit, Event) --@Bloodspore Malaise,Self--
pUnit:FullCastSpellOnTarget(45987,pUnit)
pUnit:RegisterEvent('Sorts_25467', 627, 1)
end

function Sorts_25467(pUnit, Event)
local choix_sorts_25467 = math.random(0, 1)
if choix_sorts_25467 == 0 then
pUnit:RegisterEvent('spell0_25467', 1, 1)
end
if choix_sorts_25467 == 1 then
pUnit:RegisterEvent('spell1_25467', 1, 1)
end
end

function mob25467_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25467', math.random(1500, 3000), 1)
end

function mob25467_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25467_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25467_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25467, 1, 'mob25467_Action')
RegisterUnitEvent(25467, 2, 'mob25467_Leave')
RegisterUnitEvent(25467, 3, 'mob25467_Kill')
RegisterUnitEvent(25467, 4, 'mob25467_Die')
